<%@page import="java.net.URLEncoder"%>
<%@page import="org.gmapschallenge.GmcServlet"%>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>

<!DOCTYPE html>
<html>
<head>
<title>QR code generator</title>
</head>
<body>
	<%
		for (int i = 0; i < 6; i++) {
			String url = "http://gmapschallenge.appspot.com?c=" + GmcServlet.randomCode();
			url = URLEncoder.encode(url);
	%>
	<div style="width:250px; text-align:center; border:1px #ccc solid; float: left;"><img
				src="https://chart.googleapis.com/chart?chs=250x250&cht=qr&chl=<%=url%>" />
			<span>#gmapschallenge</span>
		</div>

	<%
		}
	%>

</body>
</html>
